<?php
/*
 * @ControllerAnnotation(title="基础数据课程模型")
 */
namespace app\crm\model;

use app\common\model\TimeModel;

class BaseCourse extends TimeModel
{
    protected $deleteTime = 'delete_time';

    /**
     * @Descripttion: 专业关联模型
     * @Date: 2022-11-30 15:23:36
     */    
    public function major()
    {
        return $this->hasOne('BaseMajor','id','major_id');
        
    }

    /**
     * @Descripttion: 校区关联模型
     * @Date: 2022-11-30 15:23:36
     */    
    public function campus()
    {
        return $this->belongsTo('BaseCampus', 'campus_id', 'id');
    }
}